package com.example.readglidesource

import android.os.Bundle
import android.widget.ImageView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.bumptech.glide.Glide

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
   /*     ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }*/

        val iv=findViewById<ImageView>(R.id.iv);
        Glide.with(this).load("https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E8%9C%A1%E7%AC%94%E5%B0%8F%E6%96%B0&step_word=&hs=0&pn=0&spn=0&di=7466852183703552001&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=0&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=undefined&cs=110540125%2C300326699&os=4130952288%2C1446125165&simid=3238911892%2C3906792852&adpicid=0&lpn=0&ln=1418&fr=&fmq=1742949150867_R&fm=&ic=undefined&s=undefined&hd=undefined&latest=undefined&copyright=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=&objurl=https%3A%2F%2Fwx4.sinaimg.cn%2Fmw690%2F007QvzfIly1hnxe5n72uoj31jk1jkk1y.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fojtk5_z%26e3Bv54AzdH3F0dmblldcn9AzdH3FOup2wa1DG&gsm=1e&rpstart=0&rpnum=0&islist=&querylist=&nojc=undefined&dyTabStr=MCwxMiwzLDEsMiwxMyw3LDYsNSw5&lid=11287927422777976943").into(iv)
    }
}